home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / mc-3.2 / mc-3 / mc-3.2.1 / vfs / mcfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  845 b   |  48 lines

  1. #define mcserver_port 9876
  2.  
  3. /* This number was registered for program "mcfs" with rpc@Sun.COM */
  4. #define RPC_PROGNUM 300516
  5. #define RPC_PROGVER 1
  6.  
  7. /* this constants must be kept in sync with mcserv.c commands */
  8. /* They are the messages sent on the link connection */
  9. enum {
  10.     MC_OPEN,
  11.     MC_CLOSE,
  12.     MC_READ,
  13.     MC_WRITE,
  14.     MC_OPENDIR,
  15.     MC_READDIR,
  16.     MC_CLOSEDIR,
  17.     MC_STAT,
  18.     MC_LSTAT,
  19.     MC_FSTAT,
  20.     MC_CHMOD,
  21.     MC_CHOWN,
  22.     MC_READLINK,
  23.     MC_UNLINK,
  24.     MC_RENAME,
  25.     MC_CHDIR,
  26.     MC_LSEEK,
  27.     MC_RMDIR,
  28.     MC_SYMLINK,
  29.     MC_MKNOD,
  30.     MC_MKDIR,
  31.     MC_LINK,
  32.     MC_GETHOME,
  33.     MC_GETUPDIR,
  34.  
  35.     /* Control commands */
  36.     MC_LOGIN,
  37.     MC_QUIT,
  38.     
  39.     MC_INVALID_PASS = 0x1000,
  40.     MC_NEED_PASSWORD,
  41.     MC_LOGINOK,
  42.     MC_VERSION_OK,
  43.     MC_VERSION_MISMATCH,
  44.     MC_PASS
  45. };
  46.  
  47. extern char *mcfs_current_dir;
  48.